const express = require('express')
const qs = require('querystring')
const bodyParser = require('body-parser')
const recognition_router = require("./router/recognition")
const user_router = require("./router/user")
const return_img = require('./router/return_img')
const path = require("path")


var server=express()
server.listen("8094",function(){
    console.log("服务启动")
})

server.use(bodyParser.json())
server.use(bodyParser.urlencoded({extended: false}))

server.use(express.static(path.join(__dirname, 'page')))
server.use('/js', express.static(path.join(__dirname, 'page/js')));
server.use('/css', express.static(path.join(__dirname, 'page/css')));
server.use('/layui', express.static(path.join(__dirname, 'page/lib/layui')));

server.use('/user',user_router)
server.use('/recognition',recognition_router)
server.use('/get',return_img)



